package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ApplicantMapper;
import com.ruoyi.system.domain.Applicant;
import com.ruoyi.system.service.IApplicantService;

/**
 * 求职者信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-02-14
 */
@Service
public class ApplicantServiceImpl implements IApplicantService 
{
    @Autowired
    private ApplicantMapper applicantMapper;

    /**
     * 查询求职者信息
     * 
     * @param id 求职者信息主键
     * @return 求职者信息
     */
    @Override
    public Applicant selectApplicantById(Long id)
    {
        return applicantMapper.selectApplicantById(id);
    }

    /**
     * 查询求职者信息列表
     * 
     * @param applicant 求职者信息
     * @return 求职者信息
     */
    @Override
    public List<Applicant> selectApplicantList(Applicant applicant)
    {
        return applicantMapper.selectApplicantList(applicant);
    }

    /**
     * 新增求职者信息
     * 
     * @param applicant 求职者信息
     * @return 结果
     */
    @Override
    public int insertApplicant(Applicant applicant)
    {
        return applicantMapper.insertApplicant(applicant);
    }

    /**
     * 修改求职者信息
     * 
     * @param applicant 求职者信息
     * @return 结果
     */
    @Override
    public int updateApplicant(Applicant applicant)
    {
        return applicantMapper.updateApplicant(applicant);
    }

    /**
     * 批量删除求职者信息
     * 
     * @param ids 需要删除的求职者信息主键
     * @return 结果
     */
    @Override
    public int deleteApplicantByIds(Long[] ids)
    {
        return applicantMapper.deleteApplicantByIds(ids);
    }

    /**
     * 删除求职者信息信息
     * 
     * @param id 求职者信息主键
     * @return 结果
     */
    @Override
    public int deleteApplicantById(Long id)
    {
        return applicantMapper.deleteApplicantById(id);
    }
}
